package net.ys.advice;

import java.io.Serializable;
import java.util.HashMap;
import java.util.Map;

/**
 * @author: NMY
 * @Date: 2021/10/12
 * @Time: 20:41
 */
public class Result implements Serializable {

    Map<String, Object> result;

    public Map<String, Object> getResult() {
        return result;
    }

    public void setResult(Map<String, Object> result) {
        this.result = result;
    }

    public Result() {
        this.result = new HashMap<>();
    }

    public Result data(Object data) {
        this.result.put("data", data);
        return this;
    }

    public Result traceId(String traceId) {
        this.result.put("traceId", traceId);
        return this;
    }
}
